const paginationConfig = (data) => {
    return {
        total: data.total,
        current: data.pageNum ? data.pageNum : 0,
        pageSize: data.pageSize ? data.pageSize : 50,
        defaultPageSize: 50,
        pageSizeOptions: ['50', '100', '150', '200'],
        showSizeChanger: true,
        showQuickJumper: true,

        showTotal(total) {
            return `共 ${total ? total : 0} 条`;
        }
    }
}


export default paginationConfig;